﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Entities
{
    //付款申请通道
    [Table("Trade_PayApply_Channel")]
    [Serializable]
    public partial class TradePayApplyChannel : Entity<string>
    {
        //申请Id
        [Required]
        [StringLength(maximumLength: 36)]
        public string ApplyId { get; set; }

        //通道Id
        [Required]
        [StringLength(maximumLength: 32)]
        public string ChannelId { get; set; }

        //应用Ip地址
        [StringLength(maximumLength: 255)]
        [Required]
        public string ClientIP { get; set; }

        //付款Id
        [StringLength(maximumLength: 100)]
        public string PayId { get; set; }

        //付款Url
        [StringLength(maximumLength: 255)]
        public string PayUrl { get; set; }

        //付款参数
        //[Required]
        public string PayParams { get; set; }

        //调用类型
        public int CallType { get; set; }

        //交易申请
        public virtual TradePayApply TradePayApply { get; set; }
    }
}
